import request from '@/utils/request'

// 查询TravelGuides列表
export function loadDataList(query) {
	return request({
		url: '/travelGuides/loadDataList',
		method: 'get',
		params: query
	})
}
// 新增TravelGuides
export function addTravelGuides(data) {
	return request({
		url: '/travelGuides/add',
		method: 'post',
		data: data
	})
}
//查询TravelGuides详细
export function getTravelGuidesById(travelGuidesId) {
	return request({
		url: '/travelGuides/getTravelGuidesById/' + travelGuidesId,
		method: 'get',
	})
}
//修改TravelGuides
export function updateTravelGuidesById(data,travelGuidesId) {
	return request({
		url: '/travelGuides/updateTravelGuidesById/'+travelGuidesId,
		method: 'put',
		data: data
	})
}
//删除TravelGuides
export function delTravelGuidesById(travelGuidesId) {
	return request({
		url: '/travelGuides/deleteTravelGuidesById/'+travelGuidesId,
		method: 'delete',
	})
}
